<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>
        <link rel="Stylesheet" type="text/css" href="../../resources/css/reset.css"></link>
        <link rel="Stylesheet" type="text/css" href="../../resources/css/tag_theme.css"></link>
        <ui:insert name="title"/>
    </h:head>

    <h:body>
                    <div id="eduHeader" class="header">
                <a href="../../" title="Página Inicial">
                    <span class="logoTiny"></span>
                </a>
                <h:form>
                    <p:menubar style="font-size: 12px" id="mainMenu" binding="#{personageBarMB.actorMenu}"/>
                </h:form>
                <div id="infoUser">
                    <span class="info">
                        <font><h:outputText value="#{sessionBean.loggedActor.personage.name}"/>  </font>
                        <h:outputLink styleClass="textinfo" value="/TAG2/educational/profile/profile.xhtml">
                            <h:outputText value="#{sessionBean.loggedActor.person.name}"/>
                            <f:param name="human" value="#{sessionBean.loggedActor.person.id}"/>
                        </h:outputLink>
                        <strong><h:outputText value="#{sessionBean.loggedActor.unity.name}"/></strong>
                    </span>
                    <span class="logout">
                        <h:form id="logoutForm">
                            <h:commandLink action="#{sessionBean.logout()}">
                                <h:outputText value=""/>
                            </h:commandLink>
                        </h:form>
                    </span>
                </div>
                <span class="clear"></span>
            </div>
        <div class="mainContainer" id="ctnEdu">
            <ui:insert name="content"/>

            <ui:insert name="ajaxLoader">
                <p:ajaxStatus onstart="ajaxLoadD.show()" onsuccess="ajaxLoadD.hide()"/>
                <p:dialog modal="true" widgetVar="ajaxLoadD" 
                          draggable="false" closable="false" resizable="false">
                    CARREGANDO
                    <p:graphicImage value="../../resources/images/ajax/ajaxloader.gif"/>
                </p:dialog>
            </ui:insert>
            <ui:insert name="modals"/>
        </div>
        <div style="border-bottom:1px solid #CCC;margin-top: 60px;"></div>
        <div id="footer">
            <p id="copyrightOutput">GPL - Desenvolvido pelo IPTI</p>
            <p id="copyrightRight">Em caso de dúvidas, acesse o nosso tutorial ou entre em contato. Tel: (79) 3255-1664 E-mail: <a href="mailto:ipti@ipti.org.br" title="IPTI">ipti@ipti.org.br</a></p>
        </div>
        <span class="logoFooter"></span>
    </h:body>
</html>